Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
In Angular, on making an observable, error "Object is possibly null" appears, but it is not null

I have two projects, and in one, this code yields no error:

  form: FormGroup = new FormGroup({
    s: new FormControl('')
  })

  fo$ = this.form.get('s').valueChanges.pipe(
    map(a => console.log('something'))
  );

But in my new project, this brings up the error "Object is possibly 'null'." How can I solve this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Problem

It's probably the case where you have strict mode enabled in one project, and disabled in other project.

Solution

Go to the tsconfig.json file and disable strict mode in the project where it's enabled.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda